﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Talentnet.Core.Web;

[PageTextResource("LangOptions")]
public partial class global_LangOptions : NormalUserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ctrlENPanel.Visible = Page.CurrentLanguage != "en";
            ctrlVNPanel.Visible = Page.CurrentLanguage != "vn";
        }
    }
    protected void ctrlVN_Click(object sender, EventArgs e)
    {
        Page.CurrentLanguage = "vn";
        Response.Redirect(Request.RawUrl);
    }
    protected void ctrlEN_Click(object sender, EventArgs e)
    {
        Page.CurrentLanguage = "en";
        Response.Redirect(Request.RawUrl);
    }
}
